package com.tubi.Array2;
//遍历二维数组求和
public class Array5 {
    public static void main(String[] args) {
        int[]  arr1 = {22,33,44};
        int[]  arr2 = {22,33,44};
        int[]  arr3 = {22,33,44};
        int[]  arr4 = {22,33,44};
        int[][] arr = {arr1,arr2,arr3,arr4};
        int num = 0;
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                num += arr[i][j];
            }
        }

        System.out.println(num);
    }
}
